﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using EnvDTE100;
using InnovTech.Util.VS;

namespace DemoWPF
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            
            //list.Items.Clear();
            //string sName = @"C:\Workspace\Microsoft\CSharp\DataTransfer\Sicat.App\UploaderDemo.sln";
            //list.Items.Add("Solution: " + sName);
            //list.Items.Add("===============================================");
            //Dictionary<string, List<string>> files = new Dictionary<string, List<string>>();
            //var projects = VSUtil_10_0.GetSolutionProjects(sName);
            //    //VSHelper.GetSolutionFiles(sName, item => item.EndsWith(".xaml"));
            //foreach (var proj in projects)
            //{
            //    list.Items.Add("-------------------");
            //    list.Items.Add("Project: " + proj);
            //    list.Items.Add("-------------------");
            //    //List<String> xamls = files[proj];
            //    //foreach (var xaml in xamls)
            //    //{
            //    //    list.Items.Add(xaml);
            //    //}
            //}
        }
    }
}
